The below Python node example shows how to import excel data via Python Pandas to Statistica, and route it to the workbook output.
If any variable in the excel sheet contains mixed types of value including both strings and numbers, it might lead to an unexpected output table.
For instance, if there is a text string "a" and a numeric value 101 in the excel sheet column
After importing the excel data to Statistica via Python Pandas, the row # 6 with an original numeric value of 101 will be displayed as "a" in the Statistica spreadsheet. Because the column is being imported as Double type, a text string in a Double variable will be assigned numeric value starting from 101 by default. In this case, the string "a" is assigned as 101. And when there is a coincidental number 101 existing in the column, it matches the number with the existing text label "a" to 101 mappings and displays the text label in the output.
Workaround: Split the column with mixed types of strings and numbers into different columns where each column contains a variable of a unique type. Another alternative would be to use the import data node available in Statistica to import the data instead whenever applicable.